package com.starview.star.compiler.util;

import java.util.Iterator;
import java.util.NoSuchElementException;

public class NullIterator<T> implements Iterator<T>{

  public NullIterator(){}

  @Override
  public boolean hasNext(){
    return false;
  }

  @Override
  public T next(){
    throw new NoSuchElementException();
  }

  @Override
  public void remove(){
    throw new UnsupportedOperationException();
  }
}
